package com.powernode.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.powernode.domain.ProdComm;
import com.baomidou.mybatisplus.extension.service.IService;
import com.powernode.vo.ProdCommData;

public interface ProdCommService extends IService<ProdComm>{


    /**
     * 回复并审核评论
     * @param prodComm
     * @return
     */
    Integer replyAndExamineProdComm(ProdComm prodComm);

    /**
     * 查询单个商品评论总览信息
     * @param prodId
     * @return
     */
    ProdCommData queryProdCommDataByProdId(Long prodId);

    /**
     * 分页查询单个商品的评论
     * @param prodId
     * @param current
     * @param size
     * @param evaluate
     * @return
     */
    Page<ProdComm> queryProdProdPageByProd(Long prodId, Long current, Long size, Long evaluate);
}
